package com.dhcc.cdc.busi.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.entity.DataEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 诊断
 * 
 * @ClassName: CdcDiagnosisEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-03-15 10:20:08
 */
@TableName("t_cdc_bs_diagnosis") 
public class CdcDiagnosisEntity extends DataEntity<CdcDiagnosisEntity> {
	private static final long serialVersionUID = 1L;
	//记录唯一标识
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	private String xcode;	
	//就诊记录
	private Long episodeId;	
	//分类
	private Long busDiagCateId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busDiagCate;	
	//类型
	private Long busDiagTypeId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busDiagType;	
	//描述
	private String description;	
	//ICD10
	private String icd10;	
	//是否主诊断
	private Integer isMain;	
	//状态
	private Long busDiagStatusId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busDiagStatus;	
	//诊断日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date diagDate;	
	//发病日期
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date attackDate;	
	//来源
	private Long busDiagSourceId;	
    @TableField(exist = false)
    private CdcDictionaryEntity busDiagSource;	
	//备注
	private String note;	
	//业务数据类型
	private Long dataId;
    @TableField(exist = false)
    private CdcDataEntity data;		
	//是否有效
	private Integer isActive;	

	/**
	 * 设置：就诊记录
	 */
	public void setEpisodeId(Long episodeId) {
		this.episodeId = episodeId;
	}
	/**
	 * 获取：就诊记录
	 */
	public Long getEpisodeId() {
		return episodeId;
	}
	/**
	 * 设置：分类
	 */
	public void setBusDiagCateId(Long busDiagCateId) {
		this.busDiagCateId = busDiagCateId;
	}
	/**
	 * 获取：分类
	 */
	public Long getBusDiagCateId() {
		return busDiagCateId;
	}
	/**
	 * 设置：类型
	 */
	public void setBusDiagTypeId(Long busDiagTypeId) {
		this.busDiagTypeId = busDiagTypeId;
	}
	/**
	 * 获取：类型
	 */
	public Long getBusDiagTypeId() {
		return busDiagTypeId;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：ICD10
	 */
	public void setIcd10(String icd10) {
		this.icd10 = icd10;
	}
	/**
	 * 获取：ICD10
	 */
	public String getIcd10() {
		return icd10;
	}
	/**
	 * 设置：是否主诊断
	 */
	public void setIsMain(Integer isMain) {
		this.isMain = isMain;
	}
	/**
	 * 获取：是否主诊断
	 */
	public Integer getIsMain() {
		return isMain;
	}
	/**
	 * 设置：状态
	 */
	public void setBusDiagStatusId(Long busDiagStatusId) {
		this.busDiagStatusId = busDiagStatusId;
	}
	/**
	 * 获取：状态
	 */
	public Long getBusDiagStatusId() {
		return busDiagStatusId;
	}
	/**
	 * 设置：诊断日期
	 */
	public void setDiagDate(Date diagDate) {
		this.diagDate = diagDate;
	}
	/**
	 * 获取：诊断日期
	 */
	public Date getDiagDate() {
		return diagDate;
	}
	/**
	 * 设置：发病日期
	 */
	public void setAttackDate(Date attackDate) {
		this.attackDate = attackDate;
	}
	/**
	 * 获取：发病日期
	 */
	public Date getAttackDate() {
		return attackDate;
	}
	/**
	 * 设置：来源
	 */
	public void setBusDiagSourceId(Long busDiagSourceId) {
		this.busDiagSourceId = busDiagSourceId;
	}
	/**
	 * 获取：来源
	 */
	public Long getBusDiagSourceId() {
		return busDiagSourceId;
	}
	/**
	 * 设置：备注
	 */
	public void setNote(String note) {
		this.note = note;
	}
	/**
	 * 获取：备注
	 */
	public String getNote() {
		return note;
	}
	/**
	 * 设置：业务数据类型
	 */
	public void setDataId(Long dataId) {
		this.dataId = dataId;
	}
	/**
	 * 获取：业务数据类型
	 */
	public Long getDataId() {
		return dataId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}
    public CdcDictionaryEntity getBusDiagCate() {
        return busDiagCate;
    }
    public void setBusDiagCate(CdcDictionaryEntity busDiagCate) {
        this.busDiagCate = busDiagCate;
    }
    public CdcDictionaryEntity getBusDiagType() {
        return busDiagType;
    }
    public void setBusDiagType(CdcDictionaryEntity busDiagType) {
        this.busDiagType = busDiagType;
    }
    public CdcDictionaryEntity getBusDiagStatus() {
        return busDiagStatus;
    }
    public void setBusDiagStatus(CdcDictionaryEntity busDiagStatus) {
        this.busDiagStatus = busDiagStatus;
    }
    public CdcDictionaryEntity getBusDiagSource() {
        return busDiagSource;
    }
    public void setBusDiagSource(CdcDictionaryEntity busDiagSource) {
        this.busDiagSource = busDiagSource;
    }
    public CdcDataEntity getData() {
        return data;
    }
    public void setData(CdcDataEntity data) {
        this.data = data;
    }
    public String getXcode() {
		return xcode;
	}
	public void setXcode(String xcode) {
		this.xcode = xcode;
	}
}
